package com.hinacom.pix.client;

import org.apache.log4j.Logger;

import java.util.PropertyResourceBundle;
import java.util.ResourceBundle;

public class PDQClient extends BaseClient {
    private static Logger logger = Logger.getLogger(PDQConsumer.class);
    private static String host;
    private static int port;
    private static String sendingApplicationName;
    private static String sendingFacilityName;
    private static String receivingApplicationName;
    private static String receivingFacilityName;

    static {

        ResourceBundle bundle = PropertyResourceBundle.getBundle("pix");
        host = bundle.getString("v2-pdq-host");
        String pixPort = bundle.getString("v2-pdq-port");
        port = Integer.parseInt(pixPort);
        sendingApplicationName = bundle.getString("sending-application-name");
        sendingFacilityName = bundle.getString("sending-facility-name");
        receivingApplicationName = bundle.getString("receiving-application-name");
        receivingFacilityName = bundle.getString("receiving-facility-name");
    }

    @Override
    protected String getHost() {
        return host;
    }

    @Override
    protected int getPort() {
        return port;
    }
}
